<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<head>
<title>addDemo</title>
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
</head>

<body>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html:form method="post" action="/demo/demoManage" focus="demo.userName">
	<TABLE cellspacing="1" cellpadding="1" border="0">
		<TR align="center">
			<TH colspan="2">AddDemo</TH>
			<logic:notPresent name="demo">
				<input type="hidden" name="method" value="addDemo" />
			</logic:notPresent>
			<logic:present name="demo">
				<input type="hidden" name="method" value="updateDemo" />
				<tr>
					<td>ID</td>
					<td><input type="text" name="demo.id" value="${demo.id}"
						readonly="readonly" /></td>
				</tr>
			</logic:present>
		<TR align="center">
			<TD>用户名</TD>
			<TD><input type="text" name="demo.username"
				value="${demo.username}" /></TD>
		</TR>
		<TR align="center">
			<TD>密码</TD>
			<TD><input type="password" name="demo.password"
				value="${demo.password}" /></TD>
		</TR>
		<tr>
			<td colspan="2" align="center">
			<input name="submit" type="submit" value="提交">&nbsp;<input type="button"
				name="return" value="返回" onmousedown="javascript:history.go(-1);" />
			</td>
		</tr>
	</TABLE>
</html:form>
</body>
</html>
